<template>
  <div>
     <template>
  <div>
    <!-- 注册 -->
    <el-dialog title="注册" :visible.sync="showDialongFrimVisible" width="30%">
      <el-form
        :model="ruleForm"
        :rules="rules"
        ref="ruleForm"
        label-width="100px"
        class="demo-ruleForm"
      >
        <el-form-item label="新用户" prop="name">
          <el-input v-model="ruleForm.name"></el-input>
        </el-form-item>
        <el-form-item label="密码" prop="password">
          <el-input v-model="ruleForm.password"></el-input>
        </el-form-item>
        <el-form-item label="确认密码" prop="password">
          <el-input v-model="ruleForm.NewPassword"></el-input>
        </el-form-item>
      </el-form>
      <span slot="footer" class="dialog-footer">
        <el-button @click="showDialongFrimVisible = false">取 消</el-button>
        <el-button type="primary" @click="showDialongFrimVisible = false">确 定</el-button>
      </span>
    </el-dialog>
  </div>
</template>
<script>
export default {
  name: "Register",
  data() {
    return {
        showDialongFrimVisible:false,
      ruleForm: {
        name: "",
        password: "",
        NewPassword: ""
      },
      rules: {
        name: [
          { required: true, message: "请输入活动名称", trigger: "blur" },
          { min: 3, max: 5, message: "长度在 3 到 5 个字符", trigger: "blur" }
        ],
        password: [
          { required: true, message: "请输入活动名称", trigger: "blur" },
          { min: 3, max: 5, message: "长度在 3 到 5 个字符", trigger: "blur" }
        ],
        NewPassword: [
          { required: true, message: "请输入活动名称", trigger: "blur" },
          { min: 3, max: 5, message: "长度在 3 到 5 个字符", trigger: "blur" }
        ]
      }
    };
  },
  methods: {
    showDialog(){
         this.showDialongFrimVisible=true
    }
  },
};
</script>
<style lang="scss" scoped>
</style>
  </div>
</template>
<script>
export default {
    name:"Login",
  data() {
    return {
     
    };
  }
};
</script>